//
//  LPPProductCell.m
//  Lottery
//
//  Created by 刘盼 on 16/1/23.
//  Copyright © 2016年 lhheh. All rights reserved.
//

#import "LPPProductCell.h"

@interface LPPProductCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *productNameLabel;

@end
@implementation LPPProductCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setModel:(LPPProductModel *)model {
    
    _model = model;
    //设置圆角
    self.imageView.layer.cornerRadius = 10;
    
    self.imageView.layer.masksToBounds = YES;
    
    self.imageView.image = [UIImage imageNamed:model.icon];
    
    self.productNameLabel.text = model.title;
}
@end
